package com.bckj.freshnow.order.trade.ons.listener.strategy;

import com.bckj.fastboot.mq.ons.OnsConsumeStrategy;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
public class TradeOrderConsumeStrategyFactory {

    public static final Map<String, OnsConsumeStrategy> STRATEGY_MAP = new HashMap<>();

    public OnsConsumeStrategy getOnsConsumeStrategy(String tag) {
        return STRATEGY_MAP.get(tag);
    }
}
